package com.banyuan.HomeWork.string;
//将字符串“[java@oracle.com](mailto:java@oracle.com)“中”@”与”.“之间的字符串截取出来；
public class three {
    public static void main(String[] args) {
        String s = "[java@oracle.com](mailto:java@oracle.com)";
        int a = s.indexOf("@");
        int b = s.indexOf(".");
        System.out.println(s.substring(a + 1,b));

    }
}
